<%@page language="java" pageEncoding="UTF-8"%>
<%@include file="/template/common/include/top.jsp"%>
<%@include file="/template/common/include/constant.jsp"%>
<base target="_self">
<body onload="checkvalue('configId','${rightIds}')">
  <div class="main1">当前的位置:角色管理&gt;&gt;角色权限配置</div>
  <form method="post" action="${pageContext.request.contextPath}/gftuser.x" id="cfgFrm">
  ${sys_searchparemeter}
  <input type="hidden" id="id_op" name="op" value="selectRights" />
  <input type="hidden" name="r.id" value="${r.id}" />
    <div class="edit_div">
    <table>
      <tr>
        <th width="5%"><input type="checkbox" onclick="checkByName('configId',this.checked);" /></th>
        <th width="35%"><a href="javascript:sort('rightName','cfgFrm');" id="sort_rightName" >权限名称</a></th>
        <th width="35%"><a href="javascript:sort('rightDesc','cfgFrm');" id="sort_rightDesc" >权限描述</a></th>
        <th width="25%"><a href="javascript:sort('status','cfgFrm');" id="sort_status" >权限状态</a></th>
      </tr>
      <c:forEach items="${pageBean.retList}" var="row">
        <tr>
          <td>
            <input type="checkbox" name="configId" value="${row.id}" />
          </td>
          <td>${row.rightName}</td>
          <td>${row.rightDesc}</td>
          <td>
            <c:choose>
              <c:when test='${row.status == status_yes}'>正常</c:when>
              <c:otherwise>禁用</c:otherwise>
            </c:choose>
          </td>
        </tr>
      </c:forEach>
    </table>
    </div>
    <div class="main_page_edit">
      <%@include file="/template/common/include/pagefooter.jsp"%>
    </div>
    <div class="edit_div">
      <input type="button" onclick="commit('cfgFrm',[['id_op','configRights']]);" value="确定" class="btn_Submit" />
      <input type="button" onclick="window.close();" value="关闭" class="btn_Submit" />
    </div>
  </form>
</body>